package com.dxcx.web.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestC {

	@RequestMapping("/test")
	public ModelAndView testName() throws Exception {
		
		String viewName = "test";
		ModelAndView mv = new ModelAndView(viewName);
//		mv.addObject("json", getBean.getValue());
		return mv;
	}
	
	@RequestMapping({ "/health" })
	public void health(HttpServletRequest request, HttpServletResponse response)
			throws IOException {

		response.setCharacterEncoding("UTF-8");
		response.getWriter().print("系统健康检查：ok");
	}
	
}
